package com.syg.boot.core.autoconfigure;

import com.syg.boot.core.common.SpringContextHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author syg
 * @version 1.0
 * @2021年11月25日17:32:06
 *
 */
@Configuration
public class CommonLoadConfiguration {

    private static final Logger log = LoggerFactory.getLogger(CommonLoadConfiguration.class);

    @Bean
    public SpringContextHelper springContextHelper(ApplicationContext applicationContext) {
        SpringContextHelper helper = new SpringContextHelper();
        log.debug("^_^SpringContextHelper load success^_^");
        return helper;
    }
}
